Skip to content

Remove previousPath related logic.#7

Merged
10xjs merged 1 commit intonextfrom
remove-previous-path
Dec 23, 2016
Merged

Remove previousPath related logic.#7
10xjs merged 1 commit intonextfrom
remove-previous-path

Conversation

@10xjs
Copy link
Copy Markdown
Contributor

@10xjs 10xjs commented Dec 23, 2016

Remove the previousPath reducer and related conditional router.goBack logic. This never really worked correctly in practice since using the back function of history leaves the reducer with the wrong previousPath value (actually the "next" path). A proper solution would be to store an array of location history, and push or pop the location on navigation.

It's better to just keep things simple.

@izaakschroeder
Copy link
Copy Markdown
Contributor

LGTM. Major version bump, but red is good. 👍

Remove the previousPath reducer and related conditional `router.goBack` logic. This never really worked correctly in practice since using the back function of history leaves the reducer with the wrong `previousPath` value (actually the "next" path). A proper solution would be to store an array of location history, and push or pop the location on navigation.

It's better to just keep things simple.
@10xjs 10xjs force-pushed the remove-previous-path branch from 2ad0956 to 794c3dc Compare December 23, 2016 02:17
@10xjs 10xjs merged commit cebe802 into next Dec 23, 2016
@10xjs 10xjs deleted the remove-previous-path branch December 23, 2016 02:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants